package us.wili.dev.dao.mapper.base;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import us.wili.dev.model.entity.Activity;
import us.wili.dev.model.example.ActivityExample;

public interface BaseActivityMapper {
    int insert(Activity record);

    int batchInsert(List<Activity> records);

    int insertSelective(Activity record);

    int deleteByExample(ActivityExample example);

    int deleteByPrimaryKey(Long id);

    long countByExample(ActivityExample example);

    int updateByExampleSelective(@Param("record") Activity record, @Param("example") ActivityExample example);

    int updateByPrimaryKey(Activity record);

    int updateByPrimaryKeySelective(Activity record);

    Activity selectByPrimaryKey(@Param("id") Long id, @Param("columns") String... columns);

    Activity selectByPrimaryKeyForUpdate(@Param("id") Long id, @Param("columns") String... columns);

    Activity selectByPrimaryKeyInShareMode(@Param("id") Long id, @Param("columns") String... columns);

    List<Activity> selectByExample(ActivityExample example);

    Activity selectOneByExample(ActivityExample example);
}